from studenthoods.apps.facebook.models import University, FacebookCompetition, Entrant
from django.contrib import admin

class FacebookCompetitionAdmin(admin.ModelAdmin):
    model =  FacebookCompetition
admin.site.register(FacebookCompetition, FacebookCompetitionAdmin)

class UniversityAdmin(admin.ModelAdmin):
    model =  University
    prepopulated_fields = {'slug': ('name', )}
admin.site.register(University, UniversityAdmin)

class EntrantAdmin(admin.ModelAdmin):
    model =  Entrant
    search_fields = ('university','competition',)
    list_filter = ('university','competition',)
admin.site.register(Entrant, EntrantAdmin)
